import request from "../utils/request"



export function getBannerData() {
    return request({
        url: "/admin/banner/list",
        method: "get",
    });
}

//添加接口调用
export function addBanner(params) {
    return request({
        url: "/admin/banner/add",
        method: "post",
        data: params,
    });
}

//删除单条轮播图
export function delBanner(bannerid) {
    return request({
        url: "/admin/banner/delete",
        method: "get",
        params: {
            bannerid,
        }
    });
}

//删除勾选轮播图数据
export function delBanner2() {
    return request({
        url: "/admin/banner/removeAll",
        method: "get",

    });
}